// 数据库默认初始化文件
const admin = require("./models/admin");
const user = require("./models/user");
const delivery = require("./models/delivery");
const pag = require("./models/package");
const station = require("./models/station");

function init() {
  async () => {
    try {
      // /同步所有模型到数据库

      console.log("所有模型同步成功");
      user.create({
        name: "admin",
        username: "admin",
        password: "admin",
        desc: "超级管理员",
        avatar: "https://img.yzcdn.cn/vant/cat.jpeg",
      });
    } catch (e) {
      console.log("err", e);
    }
  };
}
init();
// User.create({
//     name: "Oldwei",
//     username: "admin", password: "admin", intr: "超级管理员"
// })
// initUser.save()
